import store from '@/store'
export default function hasPermission(str) {
 if(!str){
	 return false;
 }
 let permissionsList = store.getters.permissionsList;
 if(permissionsList&&permissionsList.length>0){
	 for(let tempPermission of permissionsList){
		 if(str == tempPermission){
			 return true;
		 }
	 }
 }
 return false;
}